#!/bin/sh

### qemu-system-x86_64 -smp 1 -machine q35 -cpu Haswell,+smap,-check,-fsgsbase -drive if=pflash,format=raw,readonly,file=../rboot/OVMF.fd -drive format=raw,file=fat:rw:target/x86_64/debug/esp -drive format=qcow2,file=target/x86_64/debug/disk.qcow2,id=disk,if=none -device ich9-ahci,id=ahci -device ide-drive,drive=disk,bus=ahci.0 -serial mon:stdio -m 4G -nic none -device isa-debug-exit,iobase=0xf4,iosize=0x04 -netdev type=tap,id=net0,ifname=tap0,script=no,downscript=no -device e1000e,netdev=net0 -display none -nographic

sudo qemu-system-x86_64 -smp 1 -enable-kvm -drive if=pflash,format=raw,readonly,file=./OVMF.fd -drive format=raw,file=fat:rw:./esp -serial mon:stdio -m 2G -netdev type=tap,id=net0,ifname=tap0,script=ifup.sh,downscript=ifdown.sh -device e1000e,netdev=net0 -nographic #如果出错后, 可以换e1000网卡

